package com.wisezone.permission.service.impl;

import com.wisezone.common.exception.WzDaoException;
import com.wisezone.common.service.impl.BaseServiceImpl;
import com.wisezone.permission.dao.WzUserRoleDao;
import com.wisezone.permission.service.WzUserRoleService;

/**
 * 
 *用户角色; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:51 update date 2010-07-29
 *         14:44:51
 * 
 */
public class WzUserRoleServiceImpl extends BaseServiceImpl implements
		WzUserRoleService {

	/**
	  *
	  *
	  *
	  */
	private WzUserRoleDao wzUserRoleDao;

	/**
	 * 删除用户角色
	 * 
	 * @param id
	 * @throws WzDaoException
	 */
	public void deleteByUserId(Long id) throws WzDaoException {

		if (id != null) {
			this.wzUserRoleDao.deleteByUserId(id);
		}
	}

	public void setWzUserRoleDao(WzUserRoleDao wzUserRoleDao) {
		this.setBaseDao(wzUserRoleDao);
		this.wzUserRoleDao = wzUserRoleDao;
	}

}